package io.github.bigbird0101.pipeline;

public interface HandlerContext {

    String getName();

    Handler getHandler();

    Pipeline getPipeline();

    /**
     * 获取上下文的附加对象
     *
     * @return 有可能为空
     */
    Object getAttachment();

    /**
     * 设置上下文的附加对象
     */
    void setAttachment(Object attachment);
}
